package com.ld.dao;

import com.ld.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class RoleDao {
    @Autowired
    private MongoTemplate mongoTemplate;

    public void insert(Role role){
        mongoTemplate.insert(role);
    }
}
